<?php

// 配置数据库
require("include/db.php");
 
// 连接数据库
require("include/conn.php");

// 配置系统
require("include/config.php");

// 获取参数
    $id1=$_SERVER["QUERY_STRING"];
	$id2=substr($id1, 3);

// 验证参数
if (TestMod=="1")
	echo $id1;
	echo "<br />";
	echo $id2;

//查询操作
$sql="SELECT * FROM hnw_main where w100=$id2";
$result=mysql_query($sql);

//关闭连接
mysql_close($connect);

?>

<!doctype html>
<html>
<head>
<meta charset="gbk">
<title>编辑记录 - <?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
<link rel="stylesheet" href="css/reset.css">
<!-- CSS reset -->
<link rel="stylesheet" href="css/style.css">
<!-- Resource style -->
<script src="js/modernizr.js"></script><!-- Modernizr -->
</head>

<body>


<form class="cd-form floating-labels"  method="post" action="editing.php">
<!--第一组输入框-->
  <fieldset>
    <legend align="center"><a href="../"><img src="img/logo.gif" alt="点击返回首页"></a></legend>
	
	<div align="center">
		<a href="index.php">返回首页</a>
	</div>
    
	<div class="error-message">
      <p>请登记您的信息</p>
    </div>
	
    <legend>基本信息：</legend> <!--输入框分组文字-->
    <?php while($row=mysql_fetch_array($result)){?>
    	<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y100" id="y100" value="<?php  echo $row['w100']; ?>">
		</div>
    	<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y110" id="y110" value="<?php  echo $row['w110']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y111" id="y111" value="<?php  echo $row['w111']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y112" id="y112" value="<?php  echo $row['w112']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y113" id="y113" value="<?php  echo $row['w113']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y114" id="y114" value="<?php  echo $row['w114']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y115" id="y115" value="<?php  echo $row['w115']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y116" id="y116" value="<?php  echo $row['w116']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y117" id="y117" value="<?php  echo $row['w117']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y118" id="y118" value="<?php  echo $row['w118']; ?>">
		</div>
		<div class="icon">
			<label class="cd-label" for="cd-name"></label>
			<input class="user" type="text" name="y119" id="y119" value="<?php  echo $row['w119']; ?>">
		</div>
	<?php } ?>
  </fieldset>
	
    <div>
      <input type="submit" value="提交登记">
    </div>
	
  </fieldset>
  
</form>

	<script src="js/jquery-2.1.1.js"></script> 
	<script src="js/main.js"></script>

</body>
</html>